{% extends 'dcim/moduletype/base.html' %}
{% load buttons %}
{% load helpers %}
{% load plugins %}
{% load i18n %}

{% block content %}
  <div class="row">
    <div class="col col-md-6">
      <div class="card">
        <h5 class="card-header">{% trans "Module Type" %}</h5>
        <div class="card-body">
          <table class="table table-hover attr-table">
            <tr>
              <td>{% trans "Manufacturer" %}</td>
              <td>{{ object.manufacturer|linkify }}</td>
            </tr>
            <tr>
              <td>{% trans "Model Name" %}</td>
              <td>{{ object.model }}</td>
            </tr>
            <tr>
              <td>{% trans "Part Number" %}</td>
              <td>{{ object.part_number|placeholder }}</td>
            </tr>
            <tr>
              <th scope="row">{% trans "Description" %}</th>
              <td>{{ object.description|placeholder }}</td>
            </tr>
            <tr>
                <td>{% trans "Weight" %}</td>
                <td>
                {% if object.weight %}
                  {{ object.weight|floatformat }} {{ object.get_weight_unit_display }}
                {% else %}
                  {{ ''|placeholder }}
                {% endif %}
                </td>
            </tr>
          </table>
        </div>
      </div>
      {% include 'inc/panels/tags.html' %}
      {% include 'inc/panels/comments.html' %}
      {% plugin_left_page object %}
    </div>
    <div class="col col-md-6">
      {% include 'inc/panels/related_objects.html' %}
      {% include 'inc/panels/custom_fields.html' %}
      {% include 'inc/panels/image_attachments.html' %}
      {% plugin_right_page object %}
    </div>
  </div>
  <div class="row">
    <div class="col col-md-12">
      {% plugin_full_width_page object %}
    </div>
  </div>
{% endblock %}
